<?php
/**
 * 用户控制器
 * Created by Forever.
 * User: Forever
 * Date: 2018/10/03
 * Time: 上午 10:39
 */
namespace app\api\controller;
use think\Controller;
use think\Request;
use \think\Db;
use think\Validate;
class Shop extends Base{
	public function _initialize() {
	  parent::_initialize ();
	}

   public function shop_list(){
		$data = $this->data;
		//验证输入的信息
		$check = $this->validate($data,'User.detail');
		if($check !==true){
		  return api_return($check);
		}
		//model处理信息
		$result = model('Shop')->getShopList($data);
		if($result != false ){
		  return api_return(10002,$result);
		}else{
		  return api_return(-10002);
		}
   }


}
